GetCounterString Method

Gets the performance counter string for the specified MTA Log Type.

Syntax

obj.GetCounterString(ID Long)
where obj is an McExchg.MTALogAnalyzer object.

Parameters

ID MTA log type numeric identifier.
Valid values are:
PI_MTA_SMTP_OUT_SENDER = 1001
PI_MTA_SMTP_OUT_RECIP = 1002
PI_MTA_SMTP_IN_SENDER = 1003
PI_MTA_SMTP_IN_RECIP = 1004
PI_MTA_ALL_SENDER = 1005
PI_MTA_ALL_RECIP = 1006

Return Type

Boolean.

Example

To get the performance counter string for SMTP Out Senders, enter:

Const PI_MTA_SMTP_OUT_SENDER = 1001
Set obj = CreateObject("McExchg.MTALogAnalyzer")
strCounterString = obj.GetCounterString(PI_MTA_SMTP_OUT_SENDER)

This example show how to retrieve the counter string for an MTA Type identifier.